package com.example.hospital.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.model.domain.entity.hospital.BookingRule;

import java.util.ArrayList;
import java.util.Date;

/**
 * @Author juzipi
 * @Date 2021/7/22 8:20
 * @Info
 */
public class TestDate {

    public static void main(String[] args) {
//        ScheduleServiceImpl scheduleService = new ScheduleServiceImpl();
//        BookingRule bookingRule = new BookingRule();
//        /*
//        "cycle": 10,
//      "releaseTime": "08:30",
//      "stopTime": "11:30",
//      "quitDay": -1,
//      "quitTime": "15:30",
//      "rule": ["西院区预约号取号地点：西院区门诊楼一层大厅挂号窗口取号", "东院区预约号取号地点：东院区老门诊楼一层大厅挂号窗口或新门诊楼各楼层挂号/收费窗口取号"]
//         */
//        String str = "西院区预约号取号地点：西院区门诊楼一层大厅挂号窗口取号,东院区预约号取号地点：东院区老门诊楼一层大厅挂号窗口或新门诊楼各楼层挂号/收费窗口取号";
//        ArrayList<String> objects = new ArrayList<>();
//        objects.add(str);
//        bookingRule.setRule(objects);
//        bookingRule.setCycle(10);
//        bookingRule.setReleaseTime("8:30");
//        bookingRule.setQuitDay(-1);
//        bookingRule.setQuitTime("15:30");
//        IPage<Date> listDate = scheduleService.getDatePage(1, 10, bookingRule);
//        System.out.println("条数"+listDate.getTotal());
//        System.out.println("数据"+listDate.getRecords());
//        System.out.println("页码"+listDate.getPages());
//        System.out.println("页面大小"+listDate.getSize());

    }

}
